﻿#ifndef FORMRESPONDER_H
#define FORMRESPONDER_H
#include "myhead.h"
#include "baseresponder.h"
#include <QWidget>

namespace Ui {
class FormResponder;
}

class FormResponder : public QWidget
{
    Q_OBJECT

public:
    explicit FormResponder(QWidget *parent = 0);
    ~FormResponder();

    void setComm(BaseResponder *rep);
private:
    Ui::FormResponder *ui;
    BaseResponder *_rep;

    void setCfgWidget(QWidget *w);

    void loadUiCfg();
    void saveUiCfg();
private slots:
    void onReceivedData(QByteArray arr);
    void on_btnClear_clicked();
    void on_btnSend_clicked();
};

#endif // FORMRESPONDER_H
